export default {
  path: '/service/{app}/imp/batchs',
  fields: [{
    code: 'name',
    type: 'code',
    name: '名称'
  }, {
    code: 'total_count',
    type: 'integer',
    name: '数据量'
  }, {
    code: 'dirty_count',
    type: 'integer',
    name: '脏数据'
  }, {
    code: 'crt_ts',
    type: 'time',
    name: '生成日期'
  }, {
    code: 'status',
    type: 'state',
    rangeset: '1:待处理@3:计算中@5:导入中@7:已完成@11:导入失败',
    name: '状态'
  }, {
    code: 'memo',
    type: 'memo',
    name: '备注'
  }],
  actions: [
    /*{
       name: '原始数据',
       type: 'importOriginView',
       code: 'dataView',
       path: 'service/{app}/imp/data/original',
       locate: 'inline'
     }, */
    {
      name: '数据生成',
      code: 'work',
      type: 'process',
      icon: 'refresh',
      path: '/service/{app}/imp/data/work/{id}',
      locate: 'inline'
    }, {
      name: '明细',
      type: 'importView',
      code: 'importView',
      path: '/service/{app}/imp/data/vendor',
      locate: 'inline'
    }, {
      name: '导入数据',
      type: 'import',
      code: 'import',
      param: {
        path_template: '/service/{app}/imp/dss',
        download_template: 'service/{app}/excel/ds/exp/{excel_ds_id}',
        path_upload: '/service/{app}/imp/data/upload/{excel_ds_id}'
      }
    }, {
      name: '删除',
      code: 'delete',
      type: 'delete',
      icon: 'trash-b',
      path: '/service/{app}/imp/batch',
      scope: 'rows'
    }
  ]
}
